package p2;

public class Student extends p1.Person {

	private int stcode;
	private String group;
	
	public int getStCode()
	{
		return stcode;
	}
	public String getGroup()
	{
		return group;
	}
	public void setStCode(int stcode)
	{
		this.stcode = stcode;
	}
	public void setGroup(String group)
	{
		this.group = group;
	}
	public Student()
	{
		setStCode(00000000);
		setGroup("no group");
	}
	public Student(int stcode, String group)
	{
		setStCode(stcode);
		setGroup(group);
	}
	public Student(String name, String surname, String perscode, int stcode, String group)
	{
		setName(name);
		setSurname(surname);
		setPrCode(perscode);
		setStCode(stcode);
		setGroup(group);
	}
	public String toString()
	{
		StringBuilder StudentString = new StringBuilder();
		StudentString.append(getName()).append(" ").append(getSurname()).append(" ").append(getPrCode()).append(" ").append(getStCode()).append(" ").append(getGroup());
		String str = new String(StudentString);
		return str;
	}

}
